package test;

import java.util.Scanner;

public class SalaryCalculation {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入基本工资：");
        double basicSalary = scanner.nextDouble();
        // 计算实领工资
        double realSalary = basicSalary + basicSalary * 0.04 + basicSalary * 0.025 + basicSalary * 0.0125 + 100;
        // 输出实领工资
        System.out.println("实领工资为：" + realSalary);
        // 输出工资条
        System.out.println("工资条:");
        System.out.println("基本工资：" + basicSalary);
        System.out.println("物价津贴：" + basicSalary * 0.04);
        System.out.println("房租津贴：" + basicSalary * 0.025);
        System.out.println("社保：" + basicSalary * 0.0125);
        System.out.println("话费补贴：" + 100);
        System.out.println("实领工资：" + realSalary);
    }
}